<title>会员管理</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>充值记录</cite></a>
  </div>
</div>

<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-body">
      <table id="LAY-cash-manage" lay-filter="LAY-cash-manage"></table>
      <script type="text/html" id="imgTpl"> 
        <img style="display:inline-block;width:30px;height:30px" src= {{ d.avatar }} >
        {{ d.nickname }}
      </script> 
      <script type="text/html" id="timeTpl"> 
        {{# var date = new Date(d.createtime * 1000);
          var dt = date.getFullYear() + '-';
          dt += (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
          dt += (Array(2).join(0) + date.getDate()).slice(-2) + ' ';
          dt += (Array(2).join(0) + date.getHours()).slice(-2) + ':';
          dt += (Array(2).join(0) + date.getMinutes()).slice(-2) + ':';
          dt += (Array(2).join(0) + date.getSeconds()).slice(-2); }}
        {{ dt }}
      </script>
      <script type="text/html" id="typeTpl"> 
        {{# if(d.type==0){ }}
        <span class="layui-badge layui-bg-black">余额提现</span>
        {{# }else if(d.type==1){ }}
        <span class="layui-badge layui-bg-blue">结算提现</span>
        {{# } }}
      </script>
      <script type="text/html" id="statusTpl"> 
        {{# if(d.status==0){ }}
        <span class="layui-badge layui-bg-orange">提现中</span>
        {{# }else if(d.status==1){ }}
        <span class="layui-badge layui-bg-green">已提现</span>
        {{# }else if(d.status==2){ }}
        <span class="layui-badge">已驳回</span>
        {{# } }}
      </script>
      <script type="text/html" id="infoTpl"> 
        {{# var info = JSON.parse(d.info); }}
        {{# var ctype = {'alipay':'支付宝','wechat':'微信'}; }}
        提现类型:{{ctype[info.type]}}，账号:{{info.cardnum}}，姓名:{{info.name}}，手机号:{{info.mobile}}
      </script>
      <script type="text/html" id="table-cash-oper">
        {{# if(d.status==0){ }}
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="tg">&nbsp;通过&nbsp;</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="jj">&nbsp;拒绝&nbsp;</a>
        {{# } }}
      </script>
    </div>
  </div>
</div>

<script>
layui.use('cash', layui.factory('cash')).use(['admin', 'cash', 'table'], function(){
  var $ = layui.$
  ,admin = layui.admin
  ,view = layui.view
  ,table = layui.table
  ,form = layui.form;
  
  form.render(null, 'layadmin-cashfront-formlist');

});
</script>